package com.symaster.backups.frame.element.pagination.util;

public class IndexUtil {

    public static boolean isFirstOne(int index, int length) {
        return index == 0;
    }

    public static boolean isSecondOne(int index, int length) {
        return index == 1;
    }

    public static boolean isLastOne(int index, int length) {
        return index >= length - 1;
    }

    public static boolean isPenultimate(int index, int length) {
        return index >= length - 2;
    }
}